<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1
 * @license    GNU/GPL
 */
 
// No direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport('joomla.application.component.controller');
jimport('joomla.application.environment.response');
jimport( 'joomla.application.component.view' );

require_once(JPATH_COMPONENT_SITE.DS.'controller.php');

/**
 * csmbol World Component Controller
 *
 * @package    Joomla.Tutorials
 * @subpackage Components
 */
class csmbolsController extends csmbolController
{
	//overrides the funciton in csmbolController for client side
	//to set "admin_in_progress" for admin side
	function chkBookingStatus(){
		$session = JFactory::getSession();
		
		if($session->has('booking_status'))
			$data = $session->get('booking_status');
		else{
			$data = "admin_in_progress";
			$session->set('booking_status', $data);						
		}
		$jsondata = array('booking_status'=>$data);
		echo $this->getJSON($jsondata);
        return;	
	}	
}